package com.fbs.demo1111.aop;


import com.fbs.demo1111.aop.servive.UserIService;
import com.fbs.demo1111.aop.servive.impl.OrderServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext app=new ClassPathXmlApplicationContext("spring.xml");
        UserIService userIService =app.getBean(UserIService.class);
        userIService.save();

        OrderServiceImpl orderService =app.getBean(OrderServiceImpl.class);
        orderService.save();

    }
}
